cmake_minimum_required(VERSION 3.15)
project(SFTP)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_AUTOMOC on)
set(CMAKE_AUTOUIC on)
set(CMAKE_AUTORCC on)

set(sources_header src/*.h)
set(sources_cpp src/*.cpp)


find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets Network)

include_directories(include)
link_directories(lib)
add_executable(${PROJECT_NAME}
        src/main.cpp
        src/mainwindow.cpp
        src/mainwindow.h
        src/mainwindow.ui

        src/msghandlerwapper.cpp
        src/msghandlerwapper.h

        src/operatefile.cpp
        src/operatefile.h

        src/sftpclient.cpp
        src/sftpclient.h

        src/tinyxml2.cpp
        src/tinyxml2.h

        src/sftp.qrc
        )
target_link_libraries(${PROJECT_NAME}
        Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network
        libssh2
        )